import request from './index.js'
//获取教师课程
export function getTeacherCourse(data){
	return request({
		url:'/api/courses',
		method:'get',
		data:data
	})
}
//创建课程
export function createCourse(data){
	return request({
		url:'/api/courses',
		method:'post',
		data:data
	})
}
//修改课程信息
export function changeCourseInfo(data){
	return request({
		url:`/api/courses/${data.courseId}`,
		method:'put',
		data:data
	})	
}